<template>
  <div class="interest">
    <div class="user-info">
      <div class="user-logo">
        <div class="logo">
          <img src="@/assets/矩形 2.png" alt="" />
        </div>
        <div class="user-main">
          <p>用户名字</p>
          <div class="desc">当前身份</div>
        </div>
      </div>
      <div class="user-container">
        <div class="dai-pay">
          <p>贷款金额</p>
          <span class="price">¥ 200,000</span>
        </div>
        <div class="dai-pay">
          <p>贷款金额</p>
          <span class="price">¥ 200,000</span>
        </div>
      </div>
      <div class="lines"></div>
    </div>
    <div class="user-tops">加盟商权益</div>
    <div class="user-intertest">
      <div class="user-intertest-item" v-for="index in 4" :key="index">
        <div class="items-main">
          <div class="circles">
            <div class="circles-center">赠</div>
          </div>
          <div class="items-container">
            <p>产品价值</p>
            <div class="prices">100000</div>
          </div>
        </div>
      </div>
    </div>
    <div class="reward">
      <div class="title">奖励规则</div>
      <div class="reward-items">
        <div class="imgs">
          <img src="@/assets/equit.png" alt="" />
        </div>
        <div class="reward-center">
          <p class="recommend">推荐一名合伙人</p>
          <div class="desc">
            <div class="reward-value">奖励值</div>
            <div class="reward-price">+9000</div>
          </div>
        </div>
        <div class="reward-button">去邀请</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.reward {
  width: 375px;
  height: 321px;
  padding: 20px 16px;
  background: #ffffff;
  border-radius: 12px 12px 0px 0px;
  .title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
  }
  .reward-items {
    height: 76px;
    display: flex;
    align-items: center;
    .imgs {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #fbf3e9;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        width: 50%;
        height: 50%;
      }
    }
    .reward-center {
      margin-left: 12px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      .recommend {
        font-weight: 400;
        color: #1f1f1f;
      }
      .desc {
        display: flex;
        font-size: 12px;
        .reward-value {
          font-weight: 400;
          color: #afabb7;
          margin-right: 8px;
        }
        .reward-price {
          font-weight: 600;
          color: #c29972;
        }
      }
    }
  }
}
.interest {
  font-size: 14px;
  height: 100%;
  // overflow: auto;
  background: #262626;
  color: #fff;
  overflow: hidden;
}
.user-info {
  width: 319px;
  height: 154px;
  margin: 20px auto;
  padding: 16px;
  background: linear-gradient(134deg, #fde3af 0%, #fdd7a0 100%);
  border-radius: 12px;
  .user-logo {
    display: flex;
    height: 48px;

    .logo {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      overflow: hidden;
      margin-right: 12px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .user-main {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    p {
      font-size: 16px;
      color: #5c4017;
      font-weight: 500;
    }
    .desc {
      color: #977b3e;
      font-size: 12px;
      font-weight: 400;
    }
  }
  .user-container {
    display: flex;
    height: 60px;
    margin-top: 10px;
    .dai-pay {
      width: 97px;
      display: flex;
      flex-direction: column;

      p {
        font-weight: 400;
        color: #977b3e;
        font-size: 12px;
        margin: 10px 0 4px;
      }
      span {
        font-weight: 600;
        color: #5c4017;
      }
    }
  }
  //.lines {
  //   position: absolute;
  //  top: 162px;
  //  left: 0;
  //    width: 375px;
  //   height: 32px;
  //    background: linear-gradient(180deg, #28292d 0%, #4f4d50 100%);
  // }
}
.user-tops {
  margin-left: 20px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 600;
  color: #efd3a1;
}
.user-intertest {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  //justify-content: center;
  .user-intertest-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 117px;
    height: 112px;
    .items-main {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .circles {
      position: relative;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #383434;
      .circles-center {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background-color: #fdd7a0;
        color: #262626;
      }
    }
    .items-container {
      font-size: 12px;
      margin-top: 6px;
      p {
        color: #efd3a1;
        font-weight: 400;
      }
      .prices {
        font-weight: 400;
        color: #b6aca2;
      }
    }
  }
}
</style>